import request from '@/utils/request'

// 查询酒店预约列表
export function listHlbooking(query) {
  return request({
    url: '/hotel/hlbooking/list',
    method: 'get',
    params: query
  })
}

// 查询酒店预约详细
export function getHlbooking(id) {
  return request({
    url: '/hotel/hlbooking/' + id,
    method: 'get'
  })
}

// 新增酒店预约
export function addHlbooking(data) {
  return request({
    url: '/hotel/hlbooking',
    method: 'post',
    data: data
  })
}

// 修改酒店预约
export function updateHlbooking(data) {
  return request({
    url: '/hotel/hlbooking',
    method: 'put',
    data: data
  })
}

// 删除酒店预约
export function delHlbooking(id) {
  return request({
    url: '/hotel/hlbooking/' + id,
    method: 'delete'
  })
}
